This chapter contains the following sections:
Programs can run on an embedded controller or desktop computer and be controlled with Keysight SD1 Programming Libraries. Keysight supplies a comprehensive set of highly optimized software instructions that controls off-the-shelf functionalities of Keysight hardware. These software instructions are compiled into the Keysight SD1 Programming Libraries. The use of customizable software to create user-defined control, test and measurement systems is commonly referred as Virtual Instrumentation. In Keysight documentation, the concept of a Virtual Instrument (or VI) describes user software that uses programming libraries and is executed by a computer.
Keysight provides ready-to-use native programming libraries for a comprehensive set of programming languages, such as C, C++, Visual Studio (VC++, C#, VB), MATLAB, National Instruments LabVIEW, Python, etc., ensuring full software compatibility and seamless multivendor integration. Ready-to-use native libraries are supplied for the following programming languages and compilers:
Language |
Compiler |
Library |
Files |
---|---|---|---|
C |
Microsoft Visual Studio . NET |
.NET Library |
*.dll |
|
MinGW (Qt), GCC |
C Library |
*.h, *.a |
|
Any C compiler |
C Library |
*.h, *.lib |
C++ |
Microsoft Visual Studio . NET |
.NET Library |
*.dll |
|
MinGW (Qt), GCC |
C++ Library |
*.h, *.a |
|
C++ Builder / Turbo C++ |
C++ Library |
*.h, *.lib |
C# |
Microsoft Visual Studio .NET |
.NET Library |
*.dll |
MATLAB |
MathWorks MATLAB |
.NET Library |
*.dll |
Python |
Any Python compiler |
Python Library |
*.py |
Basic |
Microsoft Visual Studio .NET |
.NET Library |
*.dll |
LabVIEW |
National Instruments LabVIEW |
LabVIEW Library |
*.vi |
Keysight provides dynamic libraries, e.g. DLLs, that can be used in virtually any programming language. Dynamic-link libraries are compatible with any programming language that has a compiler capable of performing dynamic linking. Here are some case examples:
Dynamic-link libraries available:
Exported Functions Language | Operating System | Files |
---|---|---|
C | Microsoft Windows | *.dll |
The following functions are available in Keysight SD1 Programming Libraries.
Function Name |
Comments |
---|---|
open | Initializes a hardware module and must be called before using any other module-related function. |
close | Releases all resources that were allocated for a module with open and must always be called before exiting the application. |
moduleCount | Returns the number of Keysight SD1 modules in the system. |
getProductName | Returns the product name of the specified module. |
getSerialNumber | Returns the serial number of the specified module. |
getChassis | Returns the chassis number of where a module is located. |
getSlot | Returns the slot number of where a module is located. |
PXItriggerWrite | Sets the digital value of a PXI trigger in the PXI backplane. Only available in PXI/PXI Express form factors. |
PXItriggerRead | Reads the digital value of a PXI trigger in the PXI backplane. Only available in PXI/PXI Express form factors. |
Function Name |
Comments |
---|---|
channelWaveShape | Sets the channel waveshape type. |
channelFrequency | Sets the channel frequency for the periodic signal generated by the Function Generator. |
channelPhase | Sets the channel phase for the periodic signals generated by the Function Generator. |
channelPhaseReset | Resets the accumulated phase of the selected channel. |
channelPhaseResetMultiple | Resets the accumulated phase of multiple selected channels, simultaneously. |
channelAmplitude | Sets the amplitude of a channel. |
channelOffset | Sets the DC offset of a channel. |
modulationAngleConfig | Configures the modulation in frequency/phase for the selected channel. |
modulationAmplitudeConfig | Configures the modulation in amplitude/offset for the selected channel. |
modulationIQconfig | Sets the IQ modulation for the selected channel. |
clockIOconfig | Configures the operation of the clock output connector. |
waveformLoad | Loads a waveform into the module's onboard RAM. |
waveformReLoad | Replaces a waveform located in the module's onboard RAM. |
waveformFlush | Deletes all waveforms from the module's onboard RAM and flushes all AWG queues. |
AWG | Provides a one-step method to load, queue, and start a single waveform. |
AWGqueueWaveform | Queues a waveform in the specified AWG. |
AWGflush | Empties the queue of the AWG. |
AWGstart | Runs the AWG starting from the beginning of its queue. |
AWGstartMultiple | Runs the AWG starting from the beginning of its queue, but acting on more than one AWG at once. |
AWGpause | Pauses the AWG. |
AWGpauseMultiple | Pauses the AWG, but acting on more than one AWG at once. |
AWGresume | Resumes the AWG. |
AWGresumeMultiple | Resumes the AWG, but acting on more than one AWG at once. |
AWGstop | Stops the AWG, resetting the queue to its initial position. |
AWGstopMultiple | Stops the AWG, but acting on more than one AWG at once. |
AWGreset | Resets the pointer variable that manages the AWG queue. |
AWGjumpNextWaveform | Forces the AWG to jump to the next waveform in the queue. |
AWGjumpNextWaveformMultiple | Forces the AWG to jump to the next waveform in the queue, but acting on more than one AWG at once. |
AWGisRunning | Returns if the AWG is running or stopped. |
AWGnWFplaying | Returns if the AWG is running or stopped, but acting on more than one AWG at once. |
AWGtriggerExternalConfig | Configures the external triggers of the AWG. |
AWGtrigger | Triggers the AWG. |
AWGtriggerMultiple | Triggers the AWG, but acting on more than one AWG at once. |
triggerIOconfig |
Configures the trigger line direction. |
triggerIOwrite | Sets the trigger output. |
triggerIOread | Reads the trigger input. |
clockSetFrequency (Requires Option CLV) | Sets the module clock frequency. This function is only usable for modules with the variable clock Option CLV. |
clockGetFrequency | Returns the value in Hz of the module sample rate frequency. |
clockGetSyncFrequency | Returns the frequency of the internal CLKsync signal in Hz. |
clockResetPhase | Set modules in sync state, waiting for first trigger to reset the phase of the internal clocks CLKsync and CLKsys. |
AWGqueueConfig | Configures the cyclic mode of the queue. |
AWGqueueConfigRead | Reads the value of the cyclic mode of the queue. |
AWGqueueMarkerConfig | Configures the Marker generation for each AWG. |
AWGqueueSyncMode | Configures the sync mode of the queue. |
SD_Wave Functions (new and delete)
Function Name |
Comments |
---|---|
new | Creates a new waveform object in the PC RAM from a file or from an array. |
delete | Deletes the waveform object from the PC RAM. |
SD_Module Functions (M3601A HVI-related)
Function Name |
Comments |
---|---|
writeRegister | Writes a value in an HVI register of a hardware module (Option HV1 required). |
readRegister | Reads a value from an HVI register of a hardware module (Option HV1 required). |
SD_Module Functions (M3602A FPGA-related)
Function Name |
Comments |
---|---|
FPGAwritePCport | Writes data at the PCport FPGA block (Option FP1 required). |
FPGAreadPCport | Reads data at the PCport FPGA block (Option FP1 required). |
FPGAload | Loads a bitstream file generated using M3602A software to FPGA (Option FP1 required). |
FPGAreset | Sends a reset signal to FPGA (Option FP1 required). |
Initializes a hardware module and must be called before using any other module-related function.
A module can be opened using the serial number or the chassis and slot number. Using the serial number ensures the same module is always opened regardless of its chassis or slot location.
Name | Description |
---|---|
Inputs | |
productName | Module's product name (for example, "M3202A"). The product name can be found on the product or can be retrieved with getProductName. |
serialNumber | Module's serial number (for example, "ES5641"). The serial number can be found on the product or can be retrieved with getSerialNumber. |
chassis | Chassis number where the module is located. The chassis number can be found in Keysight SD1 software or can be retrieved with getChassis. |
slot | Slot number in the chassis where the module is located. The slot number can be found on the chassis or can be retrieved with getSlot. |
compatibility | Forces the channel numbers to be compatible with legacy models. Channel numbering (channel enumeration) can start as CH0 or CH1. See Channel Numbering and Compatibility Mode. |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut |
Outputs | |
moduleID | (Non-object-oriented languages only) Module identifier or a negative number that indicates an error, see Error Codes. |
errorOut | See Error Codes |
Releases all resources that were allocated for a module with open
and must always be called before exiting the application.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
errorOut | See Error Codes |
Returns the number of Keysight SD1 modules (M31xxA/M32xxA/M33xxA) installed in the system.
Name | Description |
---|---|
Inputs | |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut |
Outputs | |
nModules | Number of Keysight SD1 modules installed in the system. Negative numbers indicate an error, see Error Codes. |
errorOut | (LabVIEW only) See Error Codes |
Returns the product name of the specified module.
Name | Description |
---|---|
Inputs | |
index | Module index.
It must be in the range (0 to nModules-1), where nModules is returned by moduleCount. |
chassis |
Chassis number where the module is located. The chassis number can be found in Keysight SD1 software or can be retrieved with getChassis. |
slot |
Slot number in the chassis where the module is located. The slot number can be found on the chassis or can be retrieved with getSlot. |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
productName | Product name of the specified module. This product name can be used in open. |
errorOut | See Error Codes |
Returns the serial number of the specified module.
Name | Description |
---|---|
Inputs | |
index | Module index. It must be in the range (0 to nModules-1), where nModules is returned by moduleCount. |
chassis |
Chassis number where the module is located. The chassis number can be found in Keysight SD1 software or can be retrieved with getChassis. |
slot |
Slot number in the chassis where the module is located. The slot number can be found on the chassis or can be retrieved with getSlot. |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut |
Outputs | |
serialNumber |
Serial number of the specified module. |
errorOut | See Error Codes |
Returns the chassis number of where a module is located.
Name | Description |
---|---|
Inputs | |
index | Module index. It must be in the range (0 to nModules-1), where nModules is returned by moduleCount. |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
chassis | Chassis number of where a module is located. Negative numbers indicate an error, see Error Codes. |
errorOut | (LabVIEW only) See Error Codes |
Returns the slot number of where a module is located in the chassis.
Name | Description |
---|---|
Inputs | |
index | Module index. It must be in the range (0 to nModules-1), where nModules is returned by moduleCount. |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut |
Outputs | |
slot | Slot number of where the module is located in the chassis. Negative numbers indicate an error, see Error Codes. |
errorOut | (LabVIEW only) See Error Codes |
Sets the digital value of a PXI trigger in the PXI backplane.
This function is only available in PXI/PXI Express form factors.
Name | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open. |
||||||||||||
nPXItrigger | PXI trigger number
See also, table after AWG External Trigger Source |
||||||||||||
value | Digital value with negated logic: 0 (ON) or 1 (OFF) | ||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||
Outputs | |||||||||||||
moduleIDOut | (LabVIEW only) A copy of moduleID | ||||||||||||
errorOut | See Error Codes |
Reads the digital value of a PXI trigger in the PXI backplane.
This function is only available in PXI/PXI Express form factors.
Name | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open. |
||||||||||||
nPXItrigger | PXI trigger number
See also, table after AWG External Trigger Source |
||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||
Outputs | |||||||||||||
moduleIDOut | (LabVIEW only) A copy of moduleID | ||||||||||||
value | Digital value with negated logic: 0 (ON) or 1 (OFF). Negative numbers indicate an error, see Error Codes. |
||||||||||||
errorOut | See Error Codes |
Sets the waveshape type for the selected channel.
Name | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||||||||||||||||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
||||||||||||||||||||||||||||||||||||
nChannel | Channel number | ||||||||||||||||||||||||||||||||||||
waveShape |
Channel waveshape type
|
||||||||||||||||||||||||||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||||||||||||||||||||||||||
Outputs | |||||||||||||||||||||||||||||||||||||
moduleIDout | (LabVIEW only) A copy of moduleID | ||||||||||||||||||||||||||||||||||||
errorOut | See Error Codes |
Sets the frequency, for the selected channel, of the periodic signals generated by the Function Generator block.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nChannel | Channel number |
frequency | Frequency in Hz. (Refer to the product's datasheet for frequency specifications.) |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Sets the phase, for the selected channel, of the periodic signals generated by the Function Generator block.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nChannel | Channel number |
phase |
Phase in degrees. (Refer to the product's datasheet for phase specifications.) |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Resets the accumulated phase for the selected channel. The accumulated phase is the result of the phase continuous operation of the Function Generator block.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nChannel | Channel to reset |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Resets the accumulated phase of multiple selected channels, simultaneously.
This accumulated phase is the result of the phase continuous operation of each channel's Function Generator block.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
channelMask | Mask to select the channels to reset (LSB is channel 1, bit 1 is channel 2, and so forth) |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Sets the amplitude of a channel.
See
Channel Amplitude and DC Offset
.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nChannel | Channel number |
amplitude | Amplitude in volts (–1.5 V to 1.5 V) |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Sets the DC offset of a channel.
See
Channel Amplitude and DC Offset
.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nChannel | Channel number |
offset | DC offset in volts (–1.5 V to 1.5 V) |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Configures the modulation in frequency or phase for the selected channel.
See
Channel Frequency and Phase .
Name | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
||||||||||||||||||||
nChannel | Channel number | ||||||||||||||||||||
modulationType | Angle modulation options
|
||||||||||||||||||||
deviationGain | Gain for the normalized modulating signal | ||||||||||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||||||||||
Outputs | |||||||||||||||||||||
moduleIDout | (LabVIEW only) A copy of moduleID | ||||||||||||||||||||
errorOut | See Error Codes |
Configures the modulation in amplitude or offset for the selected channel.
See
Channel Amplitude and DC Offset
.
Name | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
||||||||||||||||
nChannel | Channel number | ||||||||||||||||
modulationType | Amplitude modulation options
|
||||||||||||||||
deviationGain | Gain for the normalized modulating signal | ||||||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||||||
Outputs | |||||||||||||||||
moduleIDout | (LabVIEW only) A copy of moduleID | ||||||||||||||||
errorOut | See Error Codes |
Configures the IQ modulation for the selected channel.
See
IQ Modulation (Quadrature Modulator Block).
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nChannel | Channel number |
enable | Enable (value 1) or Disable (value 0) the IQ modulation |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Configures the operation of the clock output connector.
See CLK Output Options.
Name | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Inputs | ||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
|||||||||
clockConfig | Enable (value 1) or Disable (value 0) clock connector
|
|||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | |||||||||
Outputs | ||||||||||
moduleIDout | (LabVIEW only) A copy of moduleID | |||||||||
errorOut | See Error Codes |
Loads the specified waveform into the module's onboard RAM.
Waveforms must first be created with
new
.
Waveforms are loaded at different speeds depending on their length, longer waveforms will load at a faster rate. (e.g. 1000 point waveforms will load at 2 MB/s, waveforms with 10,000 points will load at 20 MB/s, and waveforms with 1,000,000 points will load at 44 MB/s). Regardless of waveform size, a maximum of 1024 waveforms can be loaded into the module's onboard RAM.
Name | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open | ||||||||||||||||||||||||
waveformID | Waveform identifier | ||||||||||||||||||||||||
waveformObject | Pointer to the waveform object | ||||||||||||||||||||||||
waveformType |
Waveform type, used in the waveform file and in this function, defines the type of waveform to create; this parameter is used to internally configure the AWG.
See AWG Waveform Types. |
||||||||||||||||||||||||
waveformPoints | Number of points of the waveform, which must be a multiple of a certain number of points. See AWG specifications. | ||||||||||||||||||||||||
waveformDataRaw | Array with waveform points. In dual and IQ waveforms, the waveform points are interleaved (WaveformA0, WaveformB0, WaveformA1, etc.) |
||||||||||||||||||||||||
waveformNumber | Waveform number to identify the waveform in subsequent related function calls. This value must be in the (0 to n) range, and in order to optimize the memory usage, it should be as low as possible | ||||||||||||||||||||||||
paddingMode |
If 0, the waveform is loaded as is and the zeros are added at the end if the number of points is not a multiple of the number required by the AWG. If 1, the waveform is loaded n times (using DMA) until the total number of points is a multiple of the number of points required by the AWG (only for waveforms with an even number of points). |
||||||||||||||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||||||||||||||
Outputs | |||||||||||||||||||||||||
moduleIDOut | (LabVIEW only) A copy of moduleID | ||||||||||||||||||||||||
availableRAM | Available onboard RAM in waveform points, or negative numbers that indicate an error, see Error Codes. |
||||||||||||||||||||||||
errorOut | See Error Codes |
Replaces an existing waveform located in a module's onboard RAM. The size of the new waveform must be smaller than or equal to the existing waveform.
Name | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open | ||||||||||||||||||||||||
waveformID | Waveform identifier, see SD_Wave Functions (new and delete) | ||||||||||||||||||||||||
waveformObject | Pointer to the waveform object, see SD_Wave Functions (new and delete) | ||||||||||||||||||||||||
waveformType |
Waveform type, used in the waveform file and in this function, defines the type of waveform to create; this parameter is used to internally configure the AWG.
See AWG Waveform Types. |
||||||||||||||||||||||||
waveformPoints | Number of points of the waveform, which must be a multiple of a certain number of points. See AWG specifications. | ||||||||||||||||||||||||
waveformDataRaw | Array with waveform points. In dual and IQ waveforms, the waveform points are interleaved (WaveformA0, WaveformB0, WaveformA1, etc.). |
||||||||||||||||||||||||
waveformNumber | Waveform number to identify the waveform in subsequent related function calls. This value must be in the (0 to n) range, and in order to optimize the memory usage, it should be as low as possible. |
||||||||||||||||||||||||
paddingMode |
If 0, waveform is loaded as is, and zeros are added at the end if the number of points is not a multiple of the number required by the AWG. If 1, waveform is loaded n times (using DMA) until the total number of points is a multiple of the number required by the AWG (only for waveforms with an even number of points). |
||||||||||||||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||||||||||||||
Outputs | |||||||||||||||||||||||||
moduleIDOut | (LabVIEW only) A copy of moduleID | ||||||||||||||||||||||||
availableRAM |
Available onboard RAM in waveform points. Negative numbers indicate an error, see Error Codes. |
||||||||||||||||||||||||
errorOut | See Error Codes |
Deletes all waveforms from the module's onboard RAM
and flushes all the AWG queues.
See also AWGflush
.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Provides a one-step method to load, queue, and start a single waveform in one of the module's AWGs. The waveform can be loaded from an array of points in memory or from a file.
Name | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
||||||||||||||||||||||||
nAWG | AWG channel number | ||||||||||||||||||||||||
triggerMode | Trigger method to launch the waveforms queued in an AWG.
|
||||||||||||||||||||||||
startDelay | Defines the delay between the trigger and the waveform launch in tens of ns | ||||||||||||||||||||||||
cycles | Number of times the waveform is played once launched. (Zero specifies infinite cycles.) | ||||||||||||||||||||||||
prescaler | Waveform prescaler value, to reduce the effective sampling rate by prescaler x 5 |
Name | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
waveformType |
Waveform type, used in the waveform file and in this function, defines the type of waveform to create; this parameter is used to internally configure the AWG.
See AWG Waveform Types. |
||||||||||||||||||||||||
waveformPoints | Number of points of the waveform, which must be a multiple of a certain number of points. See AWG specifications. | ||||||||||||||||||||||||
waveformDataA | Array with waveform points. Analog waveforms are defined with floating point numbers, which correspond to a normalized amplitude (-1 to 1). | ||||||||||||||||||||||||
waveformDataB | Array with waveform points, only the waveforms which have a second component (for example, Q in IQ modulations defined in Cartesian, or phase in IQ modulations defined with polar) |
||||||||||||||||||||||||
waveformFile | File containing the waveform points | ||||||||||||||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||||||||||||||
Outputs | |||||||||||||||||||||||||
moduleIDOut | (LabVIEW only) A copy of moduleID | ||||||||||||||||||||||||
availableRAM |
Available onboard RAM in waveform points. Negative numbers indicate an error, see Error Codes. |
||||||||||||||||||||||||
errorOut | See Error Codes |
Queues the specified waveform in one of the module's AWGs. The waveform must be already loaded in the module's onboard RAM. See waveformLoad . The number of queued waveforms (regardless of cycles) is limited to 1024; AWGqueueWaveform can only be called 1024 times until the waveforms need to start being consumed by playing them.
Name | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open | ||||||||||||||||||||||||
nAWG | AWG channel number | ||||||||||||||||||||||||
waveformNumber | Waveform to be queued into the AWG. It must be already loaded using waveformLoad . | ||||||||||||||||||||||||
triggerMode | Trigger method to launch the waveforms queued in an AWG.
|
||||||||||||||||||||||||
startDelay |
Defines the delay between the trigger and the waveform launch in tens of ns. The startDelay parameter can be up to (2 16) - 1 cycles = (65535 * 10 ns) = 655.35 us. |
||||||||||||||||||||||||
cycles | Number of times the waveform is repeated once launched. (Zero specifies infinite cycles.) | ||||||||||||||||||||||||
prescaler | Waveform prescaler value, to reduce the effective sampling rate by prescaler x 5 | ||||||||||||||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||||||||||||||
Outputs | |||||||||||||||||||||||||
moduleIDOut | (LabVIEW only) A copy of moduleID | ||||||||||||||||||||||||
errorOut | See Error Codes |
Empties the queue of the selected AWG channel. Waveforms are not removed from the module's onboard RAM.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nAWG | AWG channel number |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Starts the selected AWG from the beginning of its queue. The generation starts immediately or when a trigger is received, depending on the trigger selection of the first waveform in the queue and provided that at least one waveform is queued in the AWG. See AWGqueueWaveform or AWG .
After calling AWGstart, there is a minimum amount of time delay (in nanoseconds) required before the AWG can be triggered. This minimum amount of time delay is dependent on the waveform size (number of samples) to be played by the AWG; this time delay could be up to 900 ns.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nAWG | AWG channel number |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Starts the selected AWGs from the beginning of their queues. The generation will start immediately or when a trigger is received, depending on the trigger selection of the first waveform in their queues and provided that at least one waveform is queued in these AWGs. See AWGqueueWaveform or AWG .
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
AWGmask | Mask to select the AWGs to be started (LSB is AWG 0, bit 1 is AWG 1, and so forth) |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Pauses the selected AWG leaving the last waveform point at the output, and ignoring all incoming triggers. The AWG can be resumed by calling AWGresume .
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nAWG | AWG channel number |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Pauses the selected AWGs leaving the last waveform point at the output of each channel, and ignoring all incoming triggers. The AWGs can be resumed by calling AWGresumeMultiple .
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
AWGmask | Mask to select the AWG channels to be paused (LSB is Channel 1, bit 1 is Channel 2, and so forth) |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Resumes the operation of the selected AWG from the current position of the queue. The waveform generation can be paused by calling AWGpause .
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nAWG | AWG channel number |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOutS | See Error Codes |
Resumes the operation of the selected AWGs from the current position of their respective queues. The waveform generation of multiple AWGs can be paused by calling AWGpauseMultiple .
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
AWGmask | Mask to select the AWG channels to be resumed (LSB is Channel 1, bit 1 is Channel 2, and so forth) |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Stops the selected AWG, setting the output to zero, and resetting the AWG queue to its initial position. All following incoming triggers are ignored.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nAWG | AWG channel number |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Stops the selected AWGs, setting their outputs to zero, and resetting their respective queues to the initial positions. All following incoming triggers are ignored.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
AWGmask | Mask to select the AWG channels to be stopped (LSB is Channel 1, bit 1 is Channel 2, and so forth) |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Resets the pointer variable that manages the AWG queue. After a call to AWGreset, the pointer variable is pointing to the first queued waveform. Whenever an AWGreset is performed, it is necessary to call AWGresume or AWGstart for the waveform reproduction to start again.
Forces a jump to the next waveform in the AWG queue. The jump is executed once the current waveform has finished a complete cycle.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nAWG | AWG channel number |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Forces a jump to the next waveform in the queue of several AWGs. The jumps are executed once the current waveforms have finished a complete cycle.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
AWGmask | Mask to select the AWG channel numbers (LSB is Channel 1, bit 1 is Channel 2, and so forth) |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Returns a value of 1 if the AWG is running or a value of 0 if it is stopped.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nAWG | AWG channel number |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
running | 1 if the AWG is running, 0 if it is stopped |
errorOut | See Error Codes |
Returns the waveformNumber (waveform identifier) of the waveform which is currently being generated by the AWG.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nAWG | AWG channel number |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
waveformNumber | Waveform identifier (see waveformLoad ) |
errorOut | See Error Codes |
Configures the external triggers for the selected AWG.
The external trigger is used in case the waveform is queued with the external trigger mode option.
See AWGqueueWaveform
.
Name | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
||||||||||||||||||||
nAWG | AWG channel number | ||||||||||||||||||||
externalSource | AWG external trigger source
|
||||||||||||||||||||
triggerBehavior | AWG external trigger behavior
|
||||||||||||||||||||
sync | 0 for immediate trigger, 1 to synchronize with nearest CLK edge | ||||||||||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||||||||||
Outputs | |||||||||||||||||||||
moduleIDOut | (LabVIEW only) A copy of moduleID | ||||||||||||||||||||
errorOut | See Error Codes |
Triggers the selected AWG. The waveform waiting in the current position of the queue is launched provided it is configured with VI/HVI Trigger (triggerMode = 1 or 5).
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nAWG | AWG channel number |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Triggers the selected AWGs. The waveforms waiting in the current position of their respective queues is launched provided they are configured with an VI/HVI Trigger (triggerMode = 1 or 5).
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
AWGmask | Mask to select the AWG channels to be triggered (LSB is Channel 1, bit 1 is Channel 2, and so forth) |
AWG | AWG to be triggered |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDOut | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Configures the trigger line direction.
See Working with I/O Triggers.
Parameters
Name | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
||||||||||||
direction | Output (0) or Input (1)
|
||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||
Outputs | |||||||||||||
moduleIDout | (LabVIEW only) A copy of moduleID | ||||||||||||
errorOut | See Error Codes |
Sets the trigger output to be ON or OFF. The trigger must be configured as output using triggerIOconfig .
Name | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
||||||||||||||||
value | Trigger output value: 1 (ON), 0 (OFF) | ||||||||||||||||
syncMode | Sampling/synchronization mode 0 for immediate triggers, 1 to synchronize trigger to nearest CLK edge
|
||||||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||||||
Outputs | |||||||||||||||||
moduleIDout | (LabVIEW only) A copy of moduleID | ||||||||||||||||
errorOut | See Error Codes |
Reads the trigger input.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
value | Trigger output value: 1 (ON), 0 (OFF). Negative numbers indicate an error, see Error Codes. |
errorOut | See Error Codes |
Sets the module clock frequency. (See CLKsys in FlexCLK Technology (models w/ variable sampling rate).)
Name | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
||||||||||||
frequency | Frequency in Hz. See datasheet for complete specifications. | ||||||||||||
mode | Operation mode of the variable clock system
|
||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||
Outputs | |||||||||||||
moduleIDout | (LabVIEW only) A copy of moduleID | ||||||||||||
CLKsysFreq* |
It returns the real frequency applied to the hardware in Hz. It may differ from the desired frequency due to hardware frequency resolution. Negative numbers indicate an error, see Error Codes. |
||||||||||||
errorOut | See Error Codes |
*In Keysight Programming Libraries v.1.57.61 or older, clockSetFrequency returns CLKsyncFreq, the frequency of the internal CLKsync in Hz (Equation 11)
Returns the value in Hz of the module sample rate frequency. (See CLKsys in FlexCLK Technology (models w/ variable sampling rate).) It may differ from the frequency set with the clockSetFrequency (Requires Option CLV) due to the hardware frequency resolution.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
CLKsysFreq* | It returns the real frequency applied to the hardware in Hz. It may differ from the desired frequency due to hardware frequency resolution. Negative numbers indicate an error, see Error Codes. |
errorOut | See Error Codes |
Returns the frequency of the internal CLKsync signal in Hz. (See CLKsync in FlexCLK Technology (models w/ variable sampling rate).)
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
CLKsyncFreq* | It returns the real frequency applied to the hardware in Hz.
It may differ from the desired frequency due to hardware frequency resolution. Negative numbers indicate an error, see Error Codes. |
errorOut | See Error Codes |
Sets the module in a synchronous state, waiting for the first trigger to reset the phase of the internal clocks CLKsync and AWG . (See CLKsys in FlexCLK Technology (models w/ variable sampling rate).)
Name | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
||||||||||||||||||||
triggerBehavior | AWG external trigger behavior
|
||||||||||||||||||||
PXItrigger | PXI trigger number
|
||||||||||||||||||||
skew | Skew between PXI CLK10 and CLKsync in multiples of 10 ns | ||||||||||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||||||||||
Outputs | |||||||||||||||||||||
moduleIDout | (LabVIEW only) A copy of moduleID | ||||||||||||||||||||
errorOut | See Error Codes |
Configures the cyclic mode of the queue. All waveforms must be already queued in one of the AWGs of the module. See AWG Waveform Queue System .
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nAWG | AWG channel number |
mode | Operation mode of the queue: 0 One shot, 1 Cyclic. See AWG Waveform Queue System . |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Reads the value of the cyclic mode of the queue. All waveforms must be already queued (AWG Waveform Queue System ) in one of the module's Arbitrary Waveform Generators.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nAWG | AWG channel number |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
value | Cyclic mode value: 0 (OFF: One shot), 1 (ON).
Negative numbers indicate an error, see Error Codes. |
errorOut | See Error Codes |
Configures the marker generation for each AWG. All waveforms must be already queued (AWG Waveform Queue System ) in one of the module's Arbitrary Waveform Generators.
For this function to operate correctly, the markers must be configured before the waveforms start to play. Each AWG channel can be configured to output a marker on the PXI backplane or the front panel trigger.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nAWG | AWG channel number to be configured |
markerMode | Operation mode of the marker 0=Disabled, 1=On Start Event (when Start trigger is received) 2=On First Sample of Waveform (after WF startDelay), 3=On Every Cycle |
trgPXImask | Mask to select PXI triggers to use (bit0->PXItrg0, bit1->PXItrg1, ...) |
trgIOmask | Mask to select front-panel triggers to use (bit0->TriggerIO) |
value | 0=Low, 1=High (PXItrigger are active low signals, then 1 will generate a 0 pulse) |
syncMode | 0 is synchronized to CLKsys, 1 is synchronized to 10 MHz reference clock |
length | Pulse length of the marker = length x TCLKsys x 5 (length >1) (TCLKsys= 1/CLKsys) |
delaly | Delay to add before the marker pulse = delay x TCLKsys x 5 (markerMode selects the start point of the marker, after which the delay is added) |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Configures the synchronization mode of the queue.
All waveforms must be already queued (AWGqueueWaveform ) in one of the module's AWGs.
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
nAWG | AWG channel number |
syncMode | For 0 it is synchronized to CLKSYS, for 1 it is synchronized to the 10 MHz reference clock |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Creates a waveform object from data points contained in an array in memory
or in a file.
Name | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||||||||||||||
waveformType |
Waveform type, defines the type of waveform to create; this parameter is used to internally configure the AWG and selects the waveform type which matches the organizational structure of the waveform data file being loaded.
See AWG Waveform Types. |
||||||||||||||||||||||||
waveformPoints | Number of point of the waveform, which must be a multiple of a certain number of points. See AWG specifications in the Data Sheet. | ||||||||||||||||||||||||
waveformDataA | Array with waveform points. Analog waveforms are defined with floating point numbers, which correspond to a normalized amplitude (-1 to 1). |
||||||||||||||||||||||||
waveformDataB | Array with waveform points, only for dual/IQ waveforms. | ||||||||||||||||||||||||
waveformFile | File containing the waveform points. | ||||||||||||||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut. | ||||||||||||||||||||||||
Outputs | |||||||||||||||||||||||||
waveformID | (Non-object-oriented languages only) Waveform identifier.
Negative numbers indicate an error, see Error Codes. |
||||||||||||||||||||||||
errorOut | See Error Codes |
Removes a waveform created with the new function.
Name | Description |
---|---|
Inputs | |
waveformID | Waveform identifier (returned by new ) |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut |
Outputs | |
errorOut | See Error Codes |
The writeRegister and readRegister functions are related to the [3] Keysight M3601A Hard Virtual Instrument (HVI) Design Environment Software.
Writes a value in an HVI register of a hardware module (Option HV1 required).
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
regNumber | Register number |
regName | Register name |
regValue | Register value |
unit | Unit of the register value |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Reads a value from an HVI register of a hardware module (Option HV1 required).
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
regNumber | Register number |
regName | Register name |
unit | Unit of the register value |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut |
Outputs | |
regValue | Register value |
moduleIDout | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
The FPGAwritePCport, FPGAreadPCport, FPGAload, and FPGAreset functions are related to the [4] Keysight M3602A FPGA Design Environment Software.
Writes data at the PCport FPGA block (Option FP1 required).
Name | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open | ||||||||||||
nPCport | PC port number | ||||||||||||
data | Data buffer to write through PC port to FPGA | ||||||||||||
dataSize | Number of 32-bit words to write (maximum is 128 words) | ||||||||||||
address | Address that appears in the PCport interface | ||||||||||||
addressMode | Selects between the two address modes shown below:
|
||||||||||||
accessMode | Selects between the two memory access modes shown below:
|
||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut | ||||||||||||
Outputs | |||||||||||||
moduleIDout | (LabVIEW only) A copy of moduleID | ||||||||||||
errorOut | See Error Codes |
Reads data at the PCport FPGA block (Option FP1 required).
Name | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
||||||||||||
nPCport | PCport number (as if appears in the M3602A software) | ||||||||||||
address | Address that appears in the PCport interface | ||||||||||||
dataSize | Number of 32-bit words to read (maximum is 128 words) | ||||||||||||
addressMode | Selects between the two address modes shown below:
|
||||||||||||
accessMode | Selects between the two memory access modes shown below:
|
||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut | ||||||||||||
Outputs | |||||||||||||
data | Rx data buffer | ||||||||||||
moduleIDout | (LabVIEW only) A copy of moduleID | ||||||||||||
errorOut | See Error Codes |
Loads a bitstream file generated using [4] Keysight M3602A FPGA Design Environment Software to FPGA. (Option FP1 required).
Name | Description |
---|---|
Inputs | |
moduleID | (Non-object-oriented languages only) Module identifier, returned by open |
fileName | File to load |
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut |
Outputs | |
moduleIDout | (LabVIEW only) A copy of moduleID |
errorOut | See Error Codes |
Sends a reset signal to FPGA (Option FP1 required).
Name | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Inputs | |||||||||||||||||
moduleID | (Non-object-oriented languages only) Module identifier, returned by open | ||||||||||||||||
mode | Reset mode desired:
|
||||||||||||||||
errorIn | (LabVIEW only) If it contains an error, the function will not be executed and errorIn will be passed to errorOut | ||||||||||||||||
Outputs | |||||||||||||||||
moduleIDout | (LabVIEW only) A copy of moduleID | ||||||||||||||||
errorOut | See Error Codes |